<?php
session_start();
session_destroy();
setcookie('hasLoggedUserName','',time()-100);
header("location:index.php");